/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Concepto;

import java.io.Serializable;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author USUARIO
 */
public class Usuario implements Serializable {

private String login;
private String password;
private String idcolegio;
private String perfil;
private String imagen;

public static Usuario load(ResultSet rs) throws SQLException {
   Usuario usu= new Usuario();
   usu.setLogin(rs.getString(1));
   usu.setPassword(rs.getString(2));
   usu.setIdcolegio(rs.getString(3));
   usu.setPerfil(rs.getString(4));
   usu.setImagen(rs.getString(5));
   return usu;
}

public void setLogin(String log){
   this.login=log;
}
public String getLogin(){
   return login;
}

public void setPassword(String pas){
   this.password=pas;
}
public String getPassword(){
   return password;
}

public void setIdcolegio(String idc){
   this.idcolegio=idc;
}
public String getIdcolegio(){
   return idcolegio;
}

public void setPerfil(String per){
   this.perfil=per;
}
public String getPerfil(){
   return perfil;
}

public void setImagen(String ima){
   this.imagen=ima;
}
public String getImagen(){
   return imagen;
}

}